﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Resources;
using System.Text;
using System.Threading.Tasks;
using YellowMap.Resources;

namespace YellowMap
{
    public class LanguageViewModel : BaseViewModel
    {
        ResourceManager resource = null;
        public void LoadLang(string country)
        {
            switch (country)
            {
                case Constant.LANG_VI:
                    if (resource == LangVi.ResourceManager)
                    {
                        return;
                    }
                    resource = LangVi.ResourceManager;
                    break;

                case Constant.LANG_EN:
                    if (resource == LangEn.ResourceManager)
                    {
                        return;
                    }
                    resource = LangEn.ResourceManager;
                    break;

                default:
                    break;
            }
            // Reload data


        }

        string _language;
        public string Language
        {
            get { return _language; }
            set
            {
                _language = value;
                NotifyPropertyChanged("Language");
            }
        }

        string _english;
        public string English
        {
            get { return _english; }
            set
            {
                _english = value;
                NotifyPropertyChanged("English");
            }
        }

        string _vietmnamese;
        public string VietNamese
        {
            get { return _vietmnamese; }
            set
            {
                _vietmnamese = value;
                NotifyPropertyChanged("VietNamese");
            }
        }

        string _maptype;
        public string MapType
        {
            get { return _maptype; }
            set
            {
                _maptype = value;
                NotifyPropertyChanged("MapType");
            }
        }

        string _roadmap;
        public string RoadMap
        {
            get { return _roadmap; }
            set
            {
                _roadmap = value;
                NotifyPropertyChanged("RoadMap");
            }
        }

        string _hybrid;
        public string Hybrid
        {
            get { return _hybrid; }
            set
            {
                _hybrid = value;
                NotifyPropertyChanged("Hybrid");
            }
        }









    }
}
